package ziface

import (
	"io"
)

type IMsg interface {
	Encode() ([]byte, error)
	Decode([]byte) error
}

type IPack interface {
	ReadMsg(io.Reader) (IMsg, error)
	Pack(IMsg) ([]byte, error)
	Unpack([]byte) (IMsg, error)
}
